import BaseCommand from "@/core/Frame/BaseClass/BaseCommand";
import EagleEyeControl from "./EagleEyeControl.js";

class EagleEyeControlCommand extends BaseCommand {
  viewer: any;
  globeControl: any;
  globe: any;
  eagleEyeControl: EagleEyeControl;
  constructor(params: any) {
    super();
    this.viewer = params.viewer;
    this.globeControl = this.viewer.getGlobeControl();
    this.globe = this.globeControl.getGlobe();
    this.eagleEyeControl = new EagleEyeControl(this.globeControl);
  }

  execute(option: any) {
    this.eagleEyeControl.create();
  }

  release() {
    this.eagleEyeControl.destroy();
  }

  isEnable() {
    return true;
  }
}

export default EagleEyeControlCommand;
